package org.meerkat.forum.client.threadslist;

import org.meerkat.forum.client.Application;

import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.button.Button;

public class ThreadsListMinimized extends Button {

	private final ThreadsList owner;

	public ThreadsListMinimized(ThreadsList owner) {
		this.owner = owner;
		setText(owner.getModel().getTitle());

		Application application = Application.getInstance();
		ContentPanel panel = application.getSouthPanel();
		panel.add(this);
	}

	/**
	 * @return the owner
	 */
	public ThreadsList getOwner() {
		return owner;
	}
}
